<?php
namespace app\index\controller;
use think\Db;
class Contactus extends Base{
    public function aboutus(){

    	$aboutus_banner=Db::name('aboutus_banner')->where('id',1)->find();
        $intro_mission=Db::name('intro_mission')->where('id',1)->find();
        $ciya_reason=Db::name('ciya_reason')->order('sort desc')->select();
        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $opinion_value_title=Db::name('opinion_value_title')->where('id',1)->find();
        $opinion_value=Db::name('opinion_value')->order('sort desc')->select();
        $our_advantages_title=Db::name('our_advantages_title')->where('id',1)->find();
        $our_advantages=Db::name('our_advantages')->order('sort desc')->select();
        $this->assign('system_set',$this->system_set());
		$this->assign('aboutus_banner',$aboutus_banner);
        $this->assign('intro_mission',$intro_mission);
        $this->assign('ciya_reason',$ciya_reason);
        $this->assign('tmdurl',$this->request->domain());
        $this->assign('headquarters_branches',$headquarters_branches);
        $this->assign('others',$others);
        $this->assign('opinion_value_title',$opinion_value_title);
        $this->assign('opinion_value',$opinion_value);
        $this->assign('our_advantages_title',$our_advantages_title);
        $this->assign('our_advantages',$our_advantages);
        return $this->fetch();
    }
    public function contactus(){

        $headquarters_branches=Db::name('headquarters_branches')->order('sort desc')->select();
        $others=Db::name('others')->where('state',1)->order('sort desc')->select();
        $this->assign('system_set',$this->system_set());
        $this->assign('tmdurl',$this->request->domain());
        $this->assign('headquarters_branches',$headquarters_branches);
        $this->assign('others',$others);
        return $this->fetch();
    }
}
